

local SGame = Class()

function SGame:Construct()
    self.BtnConfirm.OnClicked:Add(self,self.Confirm)
end

function SGame:Confirm()
    local str=self.InputName:GetText()
    local Length= UE4.UKismetStringLibrary.Len(str)
    if Length>6 then
        Err("名字太长")
        return
    end
    if Length<1 then
        Err("名字太短")
        return
    end
    local PlayerID= LoadPlayerID()
    local Message =UE4.FReadyInfo()
    Message.PlayerID=PlayerID
    Message.PlayerName=str
    GetMySQLSub(self):WarehousingReadyInfo(Message)
    GoToGameServer(self)
end


return SGame
